package com.yantong.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class MarketingGroup {

	private Long id;
	/**
	 * 服务中心id
	 */
	private Long centreId;
	/**
	 * 连锁店ID
	 */
	private Long teamId;
	/**
	 * 活动名称
	 */
	private String activityName;
	/**
	 * 活动开始时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date startTime;
	/**
	 * 活动结束时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date endTime;
	/**
	 * 商品ID
	 */
	private Long productId;
	/**
	 * 商品名称
	 */
	private String productName;
	/**
	 * 商品图片
	 */
	private String thumb;
	/**
	 * 拼团价
	 */
	private BigDecimal groupPrice;
	/**
	 * 拼团有效期
	 */
	private Date groupTimeValidity;
	/**
	 * 需要参团人数
	 */
	private Integer needJoinGroupNum;

	/**
	 * 商品库存
	 */
	private Integer stock;
	/**
	 * 已售
	 */
	private Integer sales;

	private Integer purchasingCount;

	/**
	 * 一级推荐人分佣
	 */
	private Double oneCommission;
	/**
	 * 二级推荐人分佣
	 */
	private Double twoCommission;
	/**
	 * 商家设置拼团数量
	 */
	private Integer addNumber;

	private List<MarketingGroupSku> skus;
	private String teamName;//门店名称
	private String centerName;//商户名称

	/**
	 * 0 随机拼  1抢购
	 */
	private Integer type;
	/**
	 *抢购中奖人数
	 */
	private Integer winningNumber;
	/**
	 *赠品类型 0优惠券 1余额  2积分
	 */
	private Integer givingType;
	/**
	 *赠送的优惠券ids（以,分隔）
	 */
	private String ticketIds;
	/**
	 *赠送的余额
	 */
	private BigDecimal money;
	/**
	 *赠送的积分
	 */
	private Integer integral;

	private Integer isCoupons;
	private Integer isBalance;
	private Integer isIntegral;

	private Double initiatorCommission;
	private Double generalMemberCommission;
	private BigDecimal vipPrice;

	private List<Ticket> ticList;

	private Integer marketingGroupType;
	//商品详情
	private String description;
	/**
	 * 是否为你推荐0否1是
	 */
	private Integer isRecommend;

	public Integer getIsRecommend() {
		return isRecommend;
	}

	public void setIsRecommend(Integer isRecommend) {
		this.isRecommend = isRecommend;
	}

	public Double getGeneralMemberCommission() {
		return generalMemberCommission;
	}

	public void setGeneralMemberCommission(Double generalMemberCommission) {
		this.generalMemberCommission = generalMemberCommission;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getMarketingGroupType() {
		return marketingGroupType;
	}

	public void setMarketingGroupType(Integer marketingGroupType) {
		this.marketingGroupType = marketingGroupType;
	}

	public List<Ticket> getTicList() {
		return ticList;
	}

	public Double getInitiatorCommission() {
		return initiatorCommission;
	}

	public void setInitiatorCommission(Double initiatorCommission) {
		this.initiatorCommission = initiatorCommission;
	}

	public BigDecimal getVipPrice() {
		return vipPrice;
	}

	public void setVipPrice(BigDecimal vipPrice) {
		this.vipPrice = vipPrice;
	}

	public void setTicList(List<Ticket> ticList) {
		this.ticList = ticList;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public Integer getIsCoupons() {
		return isCoupons;
	}

	public void setIsCoupons(Integer isCoupons) {
		this.isCoupons = isCoupons;
	}

	public Integer getIsBalance() {
		return isBalance;
	}

	public void setIsBalance(Integer isBalance) {
		this.isBalance = isBalance;
	}

	public Integer getIsIntegral() {
		return isIntegral;
	}

	public void setIsIntegral(Integer isIntegral) {
		this.isIntegral = isIntegral;
	}

	private List<TicketDTO> ticketList;

	public List<TicketDTO> getTicketList() {
		return ticketList;
	}

	public void setTicketList(List<TicketDTO> ticketList) {
		this.ticketList = ticketList;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getWinningNumber() {
		return winningNumber;
	}

	public void setWinningNumber(Integer winningNumber) {
		this.winningNumber = winningNumber;
	}

	public Integer getGivingType() {
		return givingType;
	}

	public void setGivingType(Integer givingType) {
		this.givingType = givingType;
	}

	public String getTicketIds() {
		return ticketIds;
	}

	public void setTicketIds(String ticketIds) {
		this.ticketIds = ticketIds;
	}


	public Integer getIntegral() {
		return integral;
	}

	public void setIntegral(Integer integral) {
		this.integral = integral;
	}

	public Double getOneCommission() {
		return oneCommission;
	}

	public void setOneCommission(Double oneCommission) {
		this.oneCommission = oneCommission;
	}

	public Double getTwoCommission() {
		return twoCommission;
	}

	public void setTwoCommission(Double twoCommission) {
		this.twoCommission = twoCommission;
	}

	public Integer getAddNumber() {
		return addNumber;
	}

	public void setAddNumber(Integer addNumber) {
		this.addNumber = addNumber;
	}

	public Integer getPurchasingCount() {
		return purchasingCount;
	}

	public void setPurchasingCount(Integer purchasingCount) {
		this.purchasingCount = purchasingCount;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCentreId() {
		return centreId;
	}

	public void setCentreId(Long centreId) {
		this.centreId = centreId;
	}

	public Long getTeamId() {
		return teamId;
	}

	public void setTeamId(Long teamId) {
		this.teamId = teamId;
	}

	public String getActivityName() {
		return activityName;
	}

	public void setActivityName(String activityName) {
		this.activityName = activityName == null ? null : activityName.trim();
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName == null ? null : productName.trim();
	}

	public String getThumb() {
		return thumb;
	}

	public void setThumb(String thumb) {
		this.thumb = thumb == null ? null : thumb.trim();
	}

	public BigDecimal getGroupPrice() {
		return groupPrice;
	}

	public void setGroupPrice(BigDecimal groupPrice) {
		this.groupPrice = groupPrice;
	}

	public Date getGroupTimeValidity() {
		return groupTimeValidity;
	}

	public void setGroupTimeValidity(Date groupTimeValidity) {
		this.groupTimeValidity = groupTimeValidity;
	}

	public Integer getNeedJoinGroupNum() {
		return needJoinGroupNum;
	}

	public void setNeedJoinGroupNum(Integer needJoinGroupNum) {
		this.needJoinGroupNum = needJoinGroupNum;
	}

	public List<MarketingGroupSku> getSkus() {
		return skus;
	}

	public void setSkus(List<MarketingGroupSku> skus) {
		this.skus = skus;
	}

	public String getTeamName() {
		return teamName;
	}

	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}

	public String getCenterName() {
		return centerName;
	}

	public void setCenterName(String centerName) {
		this.centerName = centerName;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public Integer getSales() {
		return sales;
	}

	public void setSales(Integer sales) {
		this.sales = sales;
	}
}